package com.itheima.reggie.service;

import com.itheima.reggie.entity.R;
import com.itheima.reggie.entity.ShoppingCart;

import javax.servlet.http.HttpSession;
import java.util.List;

public interface ShoppingCartService {

    ShoppingCart add(ShoppingCart shoppingCart);

    R<List<ShoppingCart>> findAll(Long userId);

    ShoppingCart sub(ShoppingCart shoppingCart);

    void clean(Long userId);
}
